package com.jihu.mall.common.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
public enum  BizCodeEnum {

    UNKNOW_EXCEPTION(10000,"参数未知异常"),
    VAILD_EXCEPTION(10001,"参数格式校验失败"),
    VAILD_SMS_CODE_EXCEPTION(10002,"验证码获取频率太高，稍后再试"),
    PRODUCT_UP_EXCEPTION(11000,"商家异常"),
    USER_EXIST_EXCEPTION(15001,"用户已存在"),
    PHONE_EXIST_EXCEPTION(15002,"手机号已存在");

    private Integer code;

    private String msg;

    BizCodeEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }


}
